package com.example.esdemo.service;

import com.example.esdemo.pojo.News;

import java.util.Date;
import java.util.List;

public interface NewsService {
    List<News> findLikeContent(String content);

    List<News> findBetweenRecordDate(Date startDate, Date endDate);

    List<News> findBySource(String source);

    List<News> findByAuthor(String author);

    Integer countBySource(String source);

    void save(News news);
}
